import OARequest from '@/utils/oaRequest';


let randomNumber = ref()
async function getOaUserData() {
  // const response = await fetch(`https://oa.cntcitc.com.cn/seeyon/getAJAXOnlineServlet?V=${randomNumber}`);
  const res =  await OARequest({
    url: `/seeyon/getAJAXOnlineServlet?V=${randomNumber}`,
    method: 'get',
  });
  const data = await res.json();
}

export function sendHeartbeat() {
  randomNumber = Math.random()
  getOaUserData()
};
